﻿<?php
require_once('src/functions.php');
require_once('lib/uploader.class.php');
if (isset($_POST['action']) && $_POST['action']=='1') {
    $upload = new uploader('upload');
	$upload->copyFile('./files/');
    npr($upload);
}
?>

<form id="upload_form" name="upload_form" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data">
	<input type="hidden" name="action" value="1" />
	<input type="file" name="upload" id="upload" size="50" />
	<input type="submit" value="Go" />
</form>